package com.kummuna.ui;

import com.kummuna.R;
import com.kummuna.R.layout;
import com.kummuna.R.menu;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
	
	private static int SPLASH_TIME_OUT = 6000;
	
	Button btnlogin;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		btnlogin=(Button)findViewById(R.id.loginfb);
		btnlogin.setVisibility(1);
		btnlogin.setVisibility(View.INVISIBLE);
		
		new Handler().postDelayed(new Runnable() {
			 
            /*
             * Showing splash screen with a timer. This will be useful when you
             * want to show case your app logo / company
             */
 
            @Override
            public void run() {
                // This method will be executed once the timer is over
            	btnlogin.setVisibility(View.VISIBLE);
                 
                // close this activity
                //finish();
            }
        }, SPLASH_TIME_OUT);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
	getMenuInflater().inflate(R.menu.firstmain, menu);
	   return false;
	}
	
	public void Logintofacebook(View view){
		Intent a=new Intent(this,LoginFacebook.class);
		startActivity(a);
	}

}
